package app.game.resource;

import puri01.graphic.BitmapList;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import app.main.R;

public class ResourceShip extends BitmapList {

	private static ResourceShip _Instance = new ResourceShip();

	public static ResourceShip getInstance(){
		return _Instance;
	}
	
	private ResourceShip() {}
	
    public static final int WIDTH = 10;
    public static final int HEIGHT = 10;

    @Override
    protected void loadBitmaps() {
		_Bitmaps = new Bitmap[8];
		
		Resources resources = Resource.getInstance().getResources();  
		BitmapFactory.Options options=new BitmapFactory.Options();
		options.inSampleSize = 4;
		
		_Bitmaps[0] = BitmapFactory.decodeResource(resources, R.drawable.ball1, options);
        _Bitmaps[1] = BitmapFactory.decodeResource(resources, R.drawable.ball2, options);
        _Bitmaps[2] = BitmapFactory.decodeResource(resources, R.drawable.ball3, options);
        _Bitmaps[3] = BitmapFactory.decodeResource(resources, R.drawable.ball4, options);
        _Bitmaps[4] = BitmapFactory.decodeResource(resources, R.drawable.ball5, options);
        _Bitmaps[5] = BitmapFactory.decodeResource(resources, R.drawable.ball6, options);
        _Bitmaps[6] = BitmapFactory.decodeResource(resources, R.drawable.ball7, options);
        _Bitmaps[7] = BitmapFactory.decodeResource(resources, R.drawable.ball8, options);
    	}
	
}
